let path = require('path');
let fs = require('fs');
let express = require('express');
let app = express();

module.exports = function (port = 2333, rootPath = './', staticPath = 'static') {
  app.use(express.static(staticPath));

  let server = app.listen(port, '127.0.0.1', () => {
    console.log("访问地址为 http://%s:%s", server.address().address, server.address().port)
  });
};
